package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Option;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionAddRequest {
    private char choice;
    private String answer;
    private boolean isCorrect;
     public Option as(){
         return new Option(this.choice,this.answer,this.isCorrect);
     }
}
